function HTML5FeatureTest()
{
    this.initialize();
}
HTML5FeatureTest.prototype = {
    initialize: function()
    {
        this.supportVideo = function()
        {
            this.element = document.createElement('video');
            if ( !! this.element.canPlayType)
            {
                this.supportVideoFeatures = {
                    subtitle: 'track' in document.createElement('track'),
                    poster: 'poster' in this.element,
                    theora: !! this.element.canPlayType && this.element.canPlayType('video/ogg; codecs="theora"') == 'probably',
                    webm: !! this.element.canPlayType && this.element.canPlayType('video/webm; codecs="vp8"') == 'probably'
                }
            }
            return !!this.element.canPlayType;
        }
        this.supportAudioFeatures = {
            pcm: !! this.element.canPlayType && this.element.canPlayType('audio/wav; codecs="1"') == 'probably',
            mp3: r,
            aac: !! this.element.canPlayType && this.element.canPlayType('audio/mp4; codecs="mp4a.40.2"') == 'probably',
            vorbis: !! this.element.canPlayType && this.element.canPlayType('audio/ogg; codecs="vorbis"') == 'probably',
            webm: !! this.element.canPlayType && this.element.canPlayType('audio/webm; codecs="vorbis"') == 'probably'
        }
    }
}